package com.wh;
import com.wh.basic.utils.SSLUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;


@SpringBootApplication
/*@MapperScan("com.wh.*.mapper")
@MapperScan("com.wh.*.dao")*/
@EnableCaching	//开启缓存功能
//加载Listener - 本来监听器只要服务器一启动就会执行，但是SpringBoot项目中是通过启动类开启服务的，所以要加这个注解去加载listener，listener才会起作用
@ServletComponentScan(value = {"com.wh.system"})
public class PetHomeServerApplication {

    public static void main(String[] args) {
        //本地测试图片导出时，务必开启这个ssl跳过，服务器上不用开启
        //SSLUtils.disableSSLVerification();
        SpringApplication.run(PetHomeServerApplication.class, args);
    }

}
